package com.zhouxiaoge;

import org.apache.shiro.subject.Subject;
import org.apache.shiro.subject.SubjectContext;
import org.apache.shiro.web.mgt.DefaultWebSubjectFactory;

/**
 * @author 周明阳
 * mail:gqzmy@outlook.com
 * 时间:2018-04-18 10:28
 */

public class StatelessDefaultSubjectFactory extends DefaultWebSubjectFactory {

    @Override
    public Subject createSubject(SubjectContext context) {
//        context.setSessionCreationEnabled(false);
        return super.createSubject(context);
    }
}
